﻿<%@ Page Language="C#" MasterPageFile="~/Shared/EOS.Master" AutoEventWireup="True"
    CodeBehind="BangKeChiTietLamViec.aspx.cs" Inherits="EOSCRM.Web.Forms.BaoCao.Luong.BangKeChiTietLamViec" %>
<%@ Register Assembly="EOSCRM.Controls" Namespace="EOSCRM.Controls" TagPrefix="eoscrm" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
    namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
    
<asp:Content ID="head" ContentPlaceHolderID="headCPH" runat="server" >
</asp:Content>
<asp:Content ID="content" ContentPlaceHolderID="mainCPH" runat="server">

    <asp:UpdatePanel ID="upnlInfor" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div class="crmcontainer">
                <table class="crmtable">
                    <tbody>
                        <tr>
                            <td class="crmcell right">Khu vực</td>
                            <td class="crmcell">
                                <div class="left width-150">
                                    <asp:DropDownList runat="server" ID="ddlKhuVuc" AutoPostBack="true" OnSelectedIndexChanged="ddlKhuVuc_Change" />
                                </div>
                                <div class="left">
                                    <div class="right">Lô</div>
                                </div>
                                <div class="left width-150">
                                    <asp:DropDownList ID="ddlLo" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlLo_Change"/>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right">Từ ngày</td>
                            <td class="crmcell">
                                <div class="left width-150">
                                    <asp:TextBox runat="server" ID="txtTuNgay" Tag="datevn" />
                                </div>
                                <div class="left">
                                    <div class="right">Đến ngày</div>
                                </div>
                                <div class="left width-150">
                                    <asp:TextBox runat="server" ID="txtDenNgay" Tag="datevn" />
                                </div>
                            </td>
                        </tr>
                         <tr>
                            <td class="crmcell right">Nhân viên</td>
                            <td class="crmcell">
                                <div class="left width-150">
                                    <asp:DropDownList runat="server" ID="ddlNhanVien" />
                                </div>
                                <div class="left">
                                    <div class="right">Loại</div>
                                </div>
                                <div class="left">
                                    <asp:DropDownList ID="ddlLoai" runat="server" >
                                        <asp:ListItem Text="Nghỉ" Value="NGHI" />
                                        <asp:ListItem Text="Làm việc" Value="LV" />
                                    </asp:DropDownList>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="crmcell right">Ngày lập</td>
                            <td class="crmcell">
                                <div class="left">
                                    <asp:TextBox ID="txtNgayLap" tag="datevn" runat="server" TabIndex="1" />
                                </div>
                            </td>
                        </tr>                    
                        <tr>
                            <td class="crmcell right"></td>
                            <td class="crmcell">
                                <div class="left">
                                    <eoscrm:Button ID="btnReport" runat="server" CssClass="report" OnClick="btnReport_Click" />
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>   
            </div>    
        </ContentTemplate>
    </asp:UpdatePanel>
    <br />                 
    <asp:UpdatePanel ID="upnlReport" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div class="crmcontainer" id="divCR" runat="server" visible="false">
                <rsweb:ReportViewer ID="rpViewer" runat="server" Font-Names="Verdana" 
                    Font-Size="8pt" InteractiveDeviceInfos="(Collection)" ShowParameterPrompts="true"
                    AsyncRendering="false" WaitMessageFont-Names="Verdana" 
                     WaitMessageFont-Size="14pt" Height="1000px" SizeToReportContent="True" 
                     Width="800px" >
                </rsweb:ReportViewer>
            </div>            
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
